﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[System.Serializable]
public class SSMState
{
    [SerializeField]
    private int _index;
    public int index { get { return _index; } }

    [SerializeField]
    private int _target = 0;
    public int target { get { return _target; } }
    public bool hasTarget { get { return target > 0; } }

    [SerializeField]
    private bool _isEnd = false;
    public bool isEnd { get { return _isEnd; } }

    public List<SSMTranstion> transtions;

    private SSMState()
    {
        
    }

    public SSMState(int index, int target = 0, bool isEnd = false)
    {
        _index = index;
        _target = target;
        _isEnd = isEnd;
        transtions = new List<SSMTranstion>();
    }
}
